﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace SocialPaltformSample
{
    public partial class RenRenPage : PhoneApplicationPage
    {
        public RenRenPage()
        {
            InitializeComponent();
        }

        private void PhoneApplicationPage_Loaded(object sender, RoutedEventArgs e)
        {
            xOAuthControl.OAuthLogin((callback) =>
            {
                if (callback.Succeed)
                {

                    NavigationService.Navigate(new Uri("/Page2.xaml?name=renren", UriKind.RelativeOrAbsolute));
                }
                Dispatcher.BeginInvoke(() =>
                {
                });
            });
        }
    }
}